Feature: Added code for redirection to last page after login