Removed PasswordEncrypter, use AuthHelper instead!
Fixed possible NPE in authentication helper class.