bug fix for user after registering