refactored appointments_controller, added current_user helper method