Updated many bugs, as well as started to implement a properly functioning login session function