preventing errors when users have nil values or empty inputs