edits to java authentication tutorial