Defining helper method current_user and using it to clean things up.