check register now can be easily changed to use uuid