Refactored our security mechanism now login errors are presented