Flesh out tests for user sign up, refactor flash code in application layout