Added encryption, show error message if you can't login