Added some documentation to loginManager.java