Fix css bug in register

Add hashcode and equals method in domain objects