Added logout for user
Added user parsing at login