Add login action to login button.

Not reviewed.