added the login and register with authentication.
-plan to switch from User to Prof