Refactoring sign in page