Added password changing functionality. Needs testing