Made further fixes to /profile endpoint