Online Flag

User is flagged as online when they log in. Also removed an old test
function