Added catch for login credential failure