Added code to show login error