modified error messages and fixed a login bug