Sanitizing the username and password and selecting the salt and password