add form_validate for login test