Move method to generate random passwords to util class, bugfix invalid session initialization from JSON file