This functionality should validate auth data from user and gathers errors if it has place and forvard user to appropriate page. 
Sorry, but I don`t understand the question..