Added UserID to the SharedPreferences
Added user_code to the user API
Added form validation to user detail input and synchronization with the database.