registration not working