format login and registration