fixed the DNS record type and added error message in case of failures
changed the password hashing