Formatted the code of `register` module