fixes in user registeration and email activiation

fixes in user registeration and email activiation feature added.