Refactor the Sign in form