ISSUE-5257 : Fixed redirection while uploading profile picture without choosing any photo.

Tracker link- http://atutor.ca/atutor/mantis/view.php?id=5257
I have added redirection to the respective pages. Error are now shown if no file is choosen. Session is unset at the time of logout.