Removes redundant logout function from the login controller