Added (untested) login system, need to add utility functions to check login later