extracted the current_user to applicationController