very basic functionality achieved
added logout functionality
completed basic functionality and added comments