Ajax logout and refactored deny_access