Added rest endpoint to check if the username already exists.