Polish login logic