converted login page to lang defines and added more code to assists oldurl redirection from login