minor style cleanup and error handling in signup