Refactor sign in form. Refactor tests. Add matchers for tests.