move custom splash page login into the controller, fixes #3991