Refactoring model - LoginForm