processFlash added for more flexibility with DRY code, reset password works