Finished up the auth functionality.