Made profile editing more secure