Re-commit: move search to after successful login. Only alert on unhandled errors