completed auth mechanism
completed fungsi 2