Added functionality to reset passwords