Fixes bug on account registration