Added simple user authentication

Added passphrase based authentication.