Add login and subscription on main page

@clem Login action must return a json response in case of success.