login attempt redirect fix