Minor fixes and redirect added
Session and verification code added. Minor routing modifications added.