Added connection preferences
Added validations to user connection preferences
Merge branch 'preferences'