Refactor web login and simplify web interaction.