@grdl are you using universal login? If so this thread should solve what you are trying to do by using and passing login_hint to determine whether to display the signup or the login as the initialScreen :
login_hint