moved sign in to external module