Fix on login/logout functionality. Added default N/A image. Added error handling at some key points.