Error login handling

provide mailing
Error loging handling part 2

make it up and running