changes for right redirection and session check.

encryption in reminder controller and decryption in products controller
to check sessions.