Refactoring signin form