refactored login.

fat model skinny controller