add a login control