Updated to use safer production settings, generate password, no more logouts on deploy