signup api checks for user exists.