reformat form and login