Changed the create function on the server to check if the username is unique and returns an error if it is not