Integrated administrator registration functionality with some refactoring of Jayeshs code