Holy effff I finaly got authentication working