Added password checking and storing of salt within the password