Made loging in mostly working :)