Removed some unwanted statements from new methods authenticate and
logout