Refactor auth + change print to print()