refatored all the code, added signup link, added logout button