check form data for login