fix small bug on login form directive