login fix, register updated slightly