Added requirement for email addresses to be unique. Fixed incorrect redirects in Profile.java.