move user register to a partial template