Added login redirect logic.
Login