Add Statsd Logging for Login Success/Failure

Add Statsd Logging for Login Success/Failure.
nothing wrong here byt I'd suggest to create an options table with the host and add optional configuration like 'port, namespace into it so you don't need 'if  a ... else if b ... else ... end