styling inputs and rearranging them in the form