Changed the exception type when user credentials is wrong