Created by: whitered932
Fixed a bug when the user could go to the project page, but did not see anything. Now a redirect to the main page will be made. If the user is not connected to the project, then on the public page of the project, instead of the dashboard button, there will be a button to connect to the project