format login form