Switch login based on form input.