Attempt at using ajax for editing the profile