added method for password recovery