Some code style fixes
Added a check in 'create_account' to avoid empty account creation