Login changes

The php pages that checks user existence will now check both managers
and regular users for code reuse.

Changed reference in main.html to reference new login page