fixed set user method so it doesn't throw errors