Now if a user is logged in, then he cannot see the login page.
Isset check was required so that the edit profile page won't show the
password fields if the user is OAuth user.
Changed the user helper session function to now also have user_type in
session.

Signed-off-by: Amitav Roy <reachme@amitavroy.com>