SplitApp with login screen code snippet