Admin panel login/logout fixed

Login and logout function for Admin panel of CMS is fixed now
Also some comments are added wherever necessary