Finished implementation of full-featured authentication system