fixed 500 Error if email does not exists