implementing login/logout (user authentication) feature (in process)