fixed issue in registration where 'email is taken' error is showing up instead of username is taken due to emails having their own validations and username check fails on mongoose uniqueness mongodb error constraint
Merge pull request #796 from lirantal/bugfix-781-username-already-taken

fixed #781 issue in registration where 'email is taken' error is showing up wrongly