Added loading indicators and alert message when fields are empty