added show error message logic for user sign in