update to logincontroller