fixing error message issue on login/dashboard screen