use button loading indicator for login and upload form