cleaned up some shi
login and register functionality