added logout stuff to front end.. need to fix at some point