cleaned up code for standardized formatting; removed output on exit for account active check