formats the login diaglog box