improving user profile updating security + fixing broken app reference