Checking if the user already exist in mysql database