Fix a bug where error messages would not display after failed signup
Add unit tests for error messages
Clean up code for displaying error messages
Merge branch 'fix-signup-bug'