fixed login and logout buttons and added helper methods for current_user