use form layout in login dialog