Adding forwarding logic to login view