Fix crash on register page

Fix crash when creating new account at the first time using app