refactors signup form