Seems i found the problem with custom login, I use wp_signon function for custom login page, When APO is enabled and when user try to login it doesnt set wordpress_logged_in cookie, but its working fine with default wp-login. When APO is disabled custom login works totally fine without problems and cookie is set.