Handle error thrown if blank username or password entered