Added auto-redirect upon logging in