hash and salt password, fix register doesn't link to another page in login view