fixed a login check in the project controller