fixed login - correct error message now shows. before we had an error because we were using running code instead of "after searching in database" function code