Removed unnecessary log statements, switched authentication to cookie based login, fixed auth post method, changed logout method to use a unique url