Finally getting somewhere with login, last attempt was a bit dumb..