Trying to fix some problem with registration