Refactor signin and signup forms.