fix login form for controller