Added functionality to check if the user exists before sending the data to server.