added an exception class for login.