Fix routes for rails 3.2/4
Fix build
Change email validation regex