Added code for redirect IT IS COMMENTED OUT