fixing login form submit