added profile status and logout functionality