add functionality to go to requested page after logging in
format search results