register is not working