fixed register, started fixing login