fixes in profile change and log password check