Added auth hook on connect