username middleware js interval