Add submit event to login form