refactoring

moved login from registration controller to sessions controller