linnovate/mean — pull request #796 by lirantal (2014-09-16 21:45:46+00:00)
Title: fixed #781 issue in registration where 'email is taken' error is showing up wrongly

fixed issue https://github.com/linnovate/mean/issues/781

'email is taken' error is showing up wrongly instead of username is taken due to emails having their own validations and username check fails on mongoose uniqueness mongodb error constraint