Adding login error functionality for display