submit form for login