Added user logout
Added user login check to EditPage handler
Fixed user login checking bug when user is not logged in