add login functionality for beta rollout