fixed a bug that prevented non-admin users from accessing their account page