Added loading state for submit button