Make login form works