okay, now authentication works, let's finalize it