Fixed login and logout issues. Added view update for profile data