Deleted unneccessary SessionUtils and changed to use Spring Security funcionality.