Fixed bug in user account management