Added logout function
Added quartz scheduler