removes extra end in sessions controller