1.Changed login error to not use session