Fixed bug that caused login to appear tons of times.
Fixed javadoc errors.