Adding check for duplicate user on DB

Checking for duplicate user while signing up a user.
If email already registered, error is returned
Merge branch 'dev'