Refactor signin form to use form_tag in place of form_for
Add utility functions to decouple tests from implementation