Added code comments and documentation; login, logout,  and registration confirmed to work