fix enter and registration