Convert passwords into a hash
Display error messages when login or registration fails