Fixed main controller to check if email is unique/valid?.