Added login error message, client-side encryption of password