finishing authenticationg + other bunch of stuff