Improve sign-in form & tests