Authentication implemented, still some typecript typing to be done