added errormessage on loginerror