add api for checking if user exists