Added logout link and refactored currentUser method