Added auth validation

Change getting current algorithm