[REFACTOR] Move authentication to helper
[POLISH] Remove unnecessary function