restructured alot of the code into methods. Users are now registerd with anonymouse usernames