Got logging in working