Added password recovery functionality