Finishes a basic login system