Fix login to throw error on bad creds
* Fix login flash retrieval