cleaned up a few errors. added login error message