Login is working.. after a lot of trial and error