added second check for user
added more checks to balance