more bug fixes to user accounts