Login is now working. Has one minor bug.