avoiding incorrect input

Created a bunch of if statements to make sure the input fields were
complete. Cleaned up the code a bit and formatted the account balance
field.