bug fixing the account registration