parse login form